- url = local_assigns.fetch(:url, tracked_url(event.eventable))
- message = local_assigns.fetch(:message, event.recipient_message)
- title = link_to(plain_text(event.eventable.title_model, :title), url) unless local_assigns[:title]
- poll_type = @poll ? t("poll_types.#{@poll.poll_type}") : nil
- with_title = local_assigns.fetch(:with_title, false) ? "with_title" : "without_title"
- with_author = (event.eventable.respond_to?(:author_id) && @recipient.id == event.eventable.author_id && I18n.exists?("notifications.#{with_title}.#{@event_key}_author")) ? "_author" : ''
- key = "notifications.#{with_title}.#{@event_key}#{with_author}"

.mb-2.py-1
  %table.v-layout-table
    %tr
      - if event.user
        %td= render "avatar", user: event.user
      %td.base-mailer__event-headline{style: "width: 100%"}
        %h2.text-subtitle-1.ml-2=raw t(key, actor: event.user.name_or_username, title: title, poll_type: poll_type, site_name: AppConfig.theme[:site_name])
    - if message.present?
      %tr
        %td{colspan: "2"}
          %p
            %i=raw force_plain_text(message)
